import { Component, ViewEncapsulation } from '@angular/core';

@Component({
  selector: 'app-aggrid-nav-cell',
  styleUrls: ['./aggrid-nav-cell.component.css'],
  templateUrl: './aggrid-nav-cell.component.html',
  encapsulation: ViewEncapsulation.None
})
export class AggridNavCellComponent {
  params: any;
  myClass: string;

  agInit(params: any): void {
    this.params = params;
    if (params['value'] === '故障') {
      this.myClass = 'nav-error';
    } else {
      this.myClass = 'nav-normal';
    }
  }
}
